package com.leoman.service;

import com.leoman.entity.CompanyUserGain;
import com.leoman.exception.ParamErrorException;
import com.leoman.exception.UserNotFindException;
import com.leoman.exception.UserSealStatusException;
import com.leoman.service.common.ICommonService;
import org.springframework.data.domain.Page;

/**
 * CompanyUserGainService
 * Created by 涂奕恒 on 2016/11/2 0002 上午 11:02.
 */
public interface CompanyUserGainService extends ICommonService<CompanyUserGain> {

    // 查询企业用户个人收支明细列表（分页）
    Page<CompanyUserGain> iPageByCompanyUserId(Integer companyUserId, Integer pageNum, Integer pageSize) throws ParamErrorException, UserNotFindException, UserSealStatusException;

    // 查询企业用户充值列表（分页）
    Page<CompanyUserGain> pageByParams(Integer companyUserGainId, String mobile, Integer type, Integer pageNum, Integer pageSize);

    // 查询企业用户收支明细列表（分页）
    Page<CompanyUserGain> pageByParams(Integer companyUserId, Integer status, String startTime, String endTime, Integer pageNum, Integer pageSize);

    // 支付回调修改状态
    Boolean changeStatus(Integer companyUserGainId);

    // 充值
    Integer addMoney(Integer companyUserId, Double money) throws ParamErrorException;
}